package main

import (
	"github.com/EndlessCheng/codeforces-go/main/testutil"
	"testing"
)

// https://codeforces.com/problemset/problem/986/F
// https://codeforces.com/problemset/status/986/problem/F
func TestCF986F(t *testing.T) {
	// just copy from website
	rawText := `
inputCopy
3
7 7
3 8
5 6
outputCopy
YES
NO
YES
inputCopy
1
1 1
outputCopy
NO
inputCopy
100
132333031586942 135139034805221
568755084212794 958938326785573
152740384309686 511324168320391
259663318846946 788022979146661
31298960827114 87563582082133
34509602322462 411703090628873
48719268404439 51710825629361
17383026257858 38101354414763
35726179320421 285593450530963
105503806495944 274210093345277
209003408561347 606910722826711
161284139270839 958938326785573
28796438916730 127147293951347
58715822899335 274210093345277
64873650218963 326034122185907
outputCopy
`
	testutil.AssertEqualCase(t, rawText, 0, CF986F)
}
